package com.jinmdz.fmis.api.api.model.calcrule;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 计算编码B0200000请求数据
 *
 * @author LiCongLu
 * @date 2020-04-07 15:49
 */
@ApiModel(value = "计算编码B0200000请求数据", description = "计算编码B0200000请求数据")
public class B0200000Data extends BaseBean {
    /**
     * 项目价格
     */
    @AnValidate(name = "项目价格", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "项目价格", name = "itemPrice", position = 1)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal itemPrice;

    /**
     * 预约入藏时间
     */
    @AnValidate(name = "预约入藏时间")
    @ApiModelProperty(value = "预约入藏时间", name = "appointmentInTime", example = "2020-02-15 09:55", position = 2)
    @JsonFormat(pattern = yyyy_MM_dd_HH_mm)
    private Date appointmentInTime;

    /**
     * 预约出藏时间
     */
    @AnValidate(name = "预约出藏时间")
    @ApiModelProperty(value = "预约出藏时间", name = "appointmentOutTime", example = "2020-02-15 09:55", position = 3)
    @JsonFormat(pattern = yyyy_MM_dd_HH_mm)
    private Date appointmentOutTime;

    public BigDecimal getItemPrice() {
        return itemPrice;
    }

    public B0200000Data setItemPrice(BigDecimal itemPrice) {
        this.itemPrice = itemPrice;
        return this;
    }

    public Date getAppointmentInTime() {
        return appointmentInTime;
    }

    public B0200000Data setAppointmentInTime(Date appointmentInTime) {
        this.appointmentInTime = appointmentInTime;
        return this;
    }

    public Date getAppointmentOutTime() {
        return appointmentOutTime;
    }

    public B0200000Data setAppointmentOutTime(Date appointmentOutTime) {
        this.appointmentOutTime = appointmentOutTime;
        return this;
    }
}
